<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>vue1</title>
        <script src="js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <!-- <button @click="myFn('haha',26, $event)">aaaa</button> -->
            <!-- <input type="text" @keyup="myFn"> -->
            <input type="text" @keyup.f2="myFn">
        </div>
        <script>
            // 自定义修饰符按键
            Vue.config.keyCodes.f2 = 113
            let vue = new Vue({
        // 告诉vue的实例对象，将来需要控制界面上的那个区域
                el:'#app',
                data:{
                    name:"内容1"
                },
                methods: {
                    myFn(){
                        console.log('aaaa')
                    }
                },
            });
        </script>
    </body>
</html>